package com.qfedu.smart_community.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName read_meter_manager
 */
public class ReadMeterManager implements Serializable {
    /**
     * 主键id
     */
    private Integer id;

    /**
     * 表计类别id
     */
    private Integer ategoryId;

    /**
     * 档案id
     */
    private Integer archivesId;

    /**
     * 计费起止日期
     */
    private Date billingStart;

    /**
     * 计费截至日期
     */
    private Date billingStop;

    /**
     * 起数
     */
    private Double startNum;

    /**
     * 止数
     */
    private Double stopNum;

    /**
     * 数量
     */
    private Integer usage;

    /**
     * 状态,0未录入/1已录入/2未录入/3待收费/4已收费
     */
    private Integer state;

    /**
     * 登记日期
     */
    private Date entryTime;

    /**
     * 抄表方式
     */
    private String meterMethod;

    /**
     * 表流水号
     */
    private String seriaIno;

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 主键id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 表计类别id
     */
    public Integer getAtegoryId() {
        return ategoryId;
    }

    /**
     * 表计类别id
     */
    public void setAtegoryId(Integer ategoryId) {
        this.ategoryId = ategoryId;
    }

    /**
     * 档案id
     */
    public Integer getArchivesId() {
        return archivesId;
    }

    /**
     * 档案id
     */
    public void setArchivesId(Integer archivesId) {
        this.archivesId = archivesId;
    }

    /**
     * 计费起止日期
     */
    public Date getBillingStart() {
        return billingStart;
    }

    /**
     * 计费起止日期
     */
    public void setBillingStart(Date billingStart) {
        this.billingStart = billingStart;
    }

    /**
     * 计费截至日期
     */
    public Date getBillingStop() {
        return billingStop;
    }

    /**
     * 计费截至日期
     */
    public void setBillingStop(Date billingStop) {
        this.billingStop = billingStop;
    }

    /**
     * 起数
     */
    public Double getStartNum() {
        return startNum;
    }

    /**
     * 起数
     */
    public void setStartNum(Double startNum) {
        this.startNum = startNum;
    }

    /**
     * 止数
     */
    public Double getStopNum() {
        return stopNum;
    }

    /**
     * 止数
     */
    public void setStopNum(Double stopNum) {
        this.stopNum = stopNum;
    }

    /**
     * 数量
     */
    public Integer getUsage() {
        return usage;
    }

    /**
     * 数量
     */
    public void setUsage(Integer usage) {
        this.usage = usage;
    }

    /**
     * 状态,0未录入/1已录入/2未录入/3待收费/4已收费
     */
    public Integer getState() {
        return state;
    }

    /**
     * 状态,0未录入/1已录入/2未录入/3待收费/4已收费
     */
    public void setState(Integer state) {
        this.state = state;
    }

    /**
     * 登记日期
     */
    public Date getEntryTime() {
        return entryTime;
    }

    /**
     * 登记日期
     */
    public void setEntryTime(Date entryTime) {
        this.entryTime = entryTime;
    }

    /**
     * 抄表方式
     */
    public String getMeterMethod() {
        return meterMethod;
    }

    /**
     * 抄表方式
     */
    public void setMeterMethod(String meterMethod) {
        this.meterMethod = meterMethod;
    }

    /**
     * 表流水号
     */
    public String getSeriaIno() {
        return seriaIno;
    }

    /**
     * 表流水号
     */
    public void setSeriaIno(String seriaIno) {
        this.seriaIno = seriaIno;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ReadMeterManager other = (ReadMeterManager) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getAtegoryId() == null ? other.getAtegoryId() == null : this.getAtegoryId().equals(other.getAtegoryId()))
            && (this.getArchivesId() == null ? other.getArchivesId() == null : this.getArchivesId().equals(other.getArchivesId()))
            && (this.getBillingStart() == null ? other.getBillingStart() == null : this.getBillingStart().equals(other.getBillingStart()))
            && (this.getBillingStop() == null ? other.getBillingStop() == null : this.getBillingStop().equals(other.getBillingStop()))
            && (this.getStartNum() == null ? other.getStartNum() == null : this.getStartNum().equals(other.getStartNum()))
            && (this.getStopNum() == null ? other.getStopNum() == null : this.getStopNum().equals(other.getStopNum()))
            && (this.getUsage() == null ? other.getUsage() == null : this.getUsage().equals(other.getUsage()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getEntryTime() == null ? other.getEntryTime() == null : this.getEntryTime().equals(other.getEntryTime()))
            && (this.getMeterMethod() == null ? other.getMeterMethod() == null : this.getMeterMethod().equals(other.getMeterMethod()))
            && (this.getSeriaIno() == null ? other.getSeriaIno() == null : this.getSeriaIno().equals(other.getSeriaIno()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAtegoryId() == null) ? 0 : getAtegoryId().hashCode());
        result = prime * result + ((getArchivesId() == null) ? 0 : getArchivesId().hashCode());
        result = prime * result + ((getBillingStart() == null) ? 0 : getBillingStart().hashCode());
        result = prime * result + ((getBillingStop() == null) ? 0 : getBillingStop().hashCode());
        result = prime * result + ((getStartNum() == null) ? 0 : getStartNum().hashCode());
        result = prime * result + ((getStopNum() == null) ? 0 : getStopNum().hashCode());
        result = prime * result + ((getUsage() == null) ? 0 : getUsage().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getEntryTime() == null) ? 0 : getEntryTime().hashCode());
        result = prime * result + ((getMeterMethod() == null) ? 0 : getMeterMethod().hashCode());
        result = prime * result + ((getSeriaIno() == null) ? 0 : getSeriaIno().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", ategoryId=").append(ategoryId);
        sb.append(", archivesId=").append(archivesId);
        sb.append(", billingStart=").append(billingStart);
        sb.append(", billingStop=").append(billingStop);
        sb.append(", startNum=").append(startNum);
        sb.append(", stopNum=").append(stopNum);
        sb.append(", usage=").append(usage);
        sb.append(", state=").append(state);
        sb.append(", entryTime=").append(entryTime);
        sb.append(", meterMethod=").append(meterMethod);
        sb.append(", seriaIno=").append(seriaIno);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}